package cn.school.workflow.service;

import cn.school.workflow.vo.GoodsBuyApplyVO;
import cn.school.workflow.vo.WorkFlowVO;
import com.baomidou.mybatisplus.core.metadata.IPage;

public interface GoodsBuyApplyService {

    /**
     * 分页查询申购申请单
     * @param vo
     * @return
     */
    IPage<GoodsBuyApplyVO> findGoodsBuyApplyPageList(GoodsBuyApplyVO vo);

    /**
     * 取消申请
     * @param vo
     * @return
     */
    boolean cancelGoodsBuyApply(WorkFlowVO vo);

    /**
     * 创建申购申请
     * @param vo
     * @return
     */
    int createGoodsBuyApply(GoodsBuyApplyVO vo);

    /**
     * 根据ID查询请假申购详情
     * @param id
     * @return
     */
    GoodsBuyApplyVO findGoodsBuyApplyDetail(Long id);
}
